package com.say.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.say.bean.domain.Share;

@Repository
public interface ShareDao extends JpaRepository<Share, String> {

	@Query(nativeQuery = true, value = "update share set status = 0  where status=1 and user_id = ?1 ")
	@Modifying
    public void updateShareStautsByUser(String userId);
	
}
